Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSC3861: MAS support #3493

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open

MSC3861: MAS support #3493

wants to merge 48 commits into from

Conversation

mdnight
Copy link

@mdnight mdnight commented Jan 10, 2025

Pull Request Checklist

Signed-off-by: Roman Isaev <[email protected]>

i.e. /_synapse/admin/v1/users/{userID}/_allow_cross_signing_replacement_without_uia
If access token expires the client(i.e. element) expects a specific response with http code
401 and spec.UnknownToken
MAS requires this endpoint to fetch the data for the account management page
Extended logic of the endpoint in order to make it compatible with
MAS
Since MSC3861 is conflicting with standard reg/login flows, we require to disable them before running the server
@CLAassistant
Copy link

CLAassistant commented Jan 10, 2025

CLA assistant check
All committers have signed the CLA.

Comment on lines -471 to -479
{
name: "dupe token - ok",
inputData: &api.PerformDeviceCreationRequest{Localpart: "test3", ServerName: "test", AccessToken: dupeAccessToken, NoDeviceListUpdate: true},
},
{
name: "dupe token - not ok",
inputData: &api.PerformDeviceCreationRequest{Localpart: "test3", ServerName: "test", AccessToken: dupeAccessToken, NoDeviceListUpdate: true},
wantErr: true,
},
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are not relevant to msc3861 as access tokens are not involved in this flow

@mdnight mdnight marked this pull request as ready for review January 15, 2025 19:02
@mdnight mdnight requested a review from a team as a code owner January 15, 2025 19:02
@mdnight mdnight changed the title WIP: MSC3861: MAS support MSC3861: MAS support Jan 15, 2025
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 49.90440% with 786 lines in your changes missing coverage. Please review.

Project coverage is 49.41%. Comparing base (add73ec) to head (3619a6d).

Files with missing lines Patch % Lines
clientapi/routing/admin.go 52.26% 153 Missing and 37 partials ⚠️
setup/mscs/msc3861/msc3861_user_verifier.go 48.27% 106 Missing and 29 partials ⚠️
clientapi/routing/key_crosssigning.go 12.29% 102 Missing and 5 partials ⚠️
clientapi/routing/routing.go 54.35% 24 Missing and 65 partials ⚠️
...as/2024123101150000_drop_primary_key_constraint.go 44.44% 29 Missing and 1 partial ⚠️
...erapi/storage/postgres/cross_signing_keys_table.go 50.84% 22 Missing and 7 partials ⚠️
...serapi/storage/sqlite3/cross_signing_keys_table.go 50.84% 22 Missing and 7 partials ⚠️
clientapi/routing/profile.go 12.50% 18 Missing and 3 partials ⚠️
userapi/storage/shared/storage.go 58.69% 13 Missing and 6 partials ⚠️
setup/config/config_clientapi.go 54.28% 14 Missing and 2 partials ⚠️
... and 19 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3493      +/-   ##
==========================================
+ Coverage   49.39%   49.41%   +0.01%     
==========================================
  Files         524      533       +9     
  Lines       59737    60985    +1248     
==========================================
+ Hits        29507    30133     +626     
- Misses      26748    27258     +510     
- Partials     3482     3594     +112     
Flag Coverage Δ
unittests 49.41% <49.90%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants